package com.sss.hloster0703;

public class TestEx03 {

	public static void main(String[] args) {
		try {
			String teachers[] = { "王林", "韩立", "苏铭" };
			for (int i = 0; i < 4; i++) {
				System.out.print(teachers[i] + "   ");
			}
		} catch (ArrayIndexOutOfBoundsException e) {
			System.out.println();
			System.out.println("调用异常对象的getMessage() 方法：");
			System.out.println(e.getMessage());
			System.out.println("调用异常对象的printStackTrace() 方法");
			e.printStackTrace();
		} finally {
			System.out.println("显示完毕！");
		}

	}

}
